package com.myfoon.view.context.helper;

import java.util.ResourceBundle;

import javax.faces.application.Application;
import javax.faces.context.FacesContext;


public class LocaleHelper {
    
    public static String getValue(String key) {
        FacesContext context = FacesContext.getCurrentInstance();
        Application application = context.getApplication();
        ResourceBundle bundle =
            application.getResourceBundle(context, "messages");
        
        return bundle.getString(key);
    }
    
    public LocaleHelper() {
    }
}
